package cn.ubeta.b2c.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.HorizontalScrollView;

/**
 * Created by liudengyong on 16/10/15.
 */

public class UnTouchableHorizontalScrollView extends HorizontalScrollView {

    public UnTouchableHorizontalScrollView(Context context) {
        super(context);
    }

    public UnTouchableHorizontalScrollView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public UnTouchableHorizontalScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return false;
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        return true;
    }
}
